# $FreeBSD$
#

PORTNAME=	CairoSVG
PORTVERSION=	0.4.4
CATEGORIES=	graphics python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	olivierd@FreeBSD.org
COMMENT=	SVG converter based on Cairo

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/cairo/__init__.py:${PORTSDIR}/graphics/py-cairo

USE_PYTHON=	yes
USE_PYDISTUTILS=	yes

OPTIONS_DEFINE=	PNG
OPTIONS_DEFAULT=	PNG

OPTIONSFILE?=	${PORT_DBDIR}/py-${PORTNAME}/options

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPNG}
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tinycss>=0.3:${PORTSDIR}/textproc/py-tinycss \
	${PYTHON_PKGNAMEPREFIX}cssselect>=0.7:${PORTSDIR}/textproc/py-cssselect
.endif

.include <bsd.port.mk>
